import request from "../../axios/index.js";


export const getOrderList = (params) => {
    return request({
        url: "/dingding/order_list",
        params
    })
}


export const getProductList = (data) => {
    console.log(data, "data")
    return request({
        url: "/dingding/product_list",
        method: "post",
        data: data
    })
}
export const getOrderDetail = (data) => {
    console.log(data, "data")
    return request({
        url: "/dingding/order_detail",
        params: data
    })
}

export const cartEdit = (data) => {
    console.log(data, "data")
    return request({
        url: "/dingding/cart_edit",
        method: "post",
        data
    })
}
export const getCart = () => {
    return request({
        url: "/dingding/cart",
    })
}

export const addOrder = (params) => {
    return request({
        url: "/dingding/addOrder",
        params
    })
}


export const productCate = () => {
    return request({
        url: "/dingding/product_cate",

    })
}
export const orderConfim = (params) => {
    return request({
        url: "/dingding/order_confim",
        params
    })
}
export const orderDele = (params) => {
    return request({
        url: "/dingding/order_del",
        params
    })
}


export const login = (params) => {
    // console.log("执行登录",params)
    return request({
        url: "/dingding/login",
        params
    })
}


export const love = (params) => {
    // console.log("执行登录",params)
    return request({
        url: "/dingding/love",
        params
    })
}

export const product = (params) => {
    // console.log("执行登录",params)
    return request({
        url: "/dingding/product",
        params
    })
}

export const love_list = (params) => {
    // console.log("执行登录",params)
    return request({
        url: "/dingding/love_list",
        params
    })
}



